#include <iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;
	switch (n)
	{
	case 1:
		/* Fall through*/
	case 2: /* (n==1 || n==2)*/
		cout << "1 or 2" << endl;
		break;
	case 3:
		cout << "Wednesday" << endl;
		/* Fall through*/
	case 4:
		cout << "Thursday" << endl;
		break;
	case 5:
		cout << "Friday" << endl;
		/* Fall through*/
	case 6:
		/* Fall through*/
	case 7:
		cout << "Sunday" << endl;
		break;
	default:
		cout << "What The FUCK???" << endl;
		break;
	}
}